
import urllib.request
from bs4 import BeautifulSoup
soup=BeautifulSoup(open(r'C:\Users\patrickjane\Desktop\chromehistoryview\111.txt',encoding='utf-16'),features='html.parser')

tags = soup.find_all(r"https(.*)html", str)

for tag in tags:
     print(str(tag.get('href')).strip())
